# vim: set ft=sh:
run_hook ()
{
    /sbin/modprobe -q dm-mod >/dev/null 2>&1
    /sbin/modprobe -q dm-mirror >/dev/null 2>&1
    if [ -e "/sys/class/misc/device-mapper" ]; then
        read dev_t < /sys/class/misc/device-mapper/dev
        /bin/mknod "/dev/mapper/control" c $(/bin/replace "${dev_t}" ':')

        msg ":: Activating dmraid arrays..."
        if [ "${quiet}" = "y" ]; then
            /sbin/dmraid -ay >/dev/null
        else
            /sbin/dmraid -ay
        fi
    fi
}
